package com.yuyou.fn.tms.vo;

import com.yuyou.fn.educational.entity.CourseClass;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * Created by lzh on 2019/3/8.
 */
public class TmsClassDegree {
    @ApiModelProperty("班级ID")
    private Long claId;
    @ApiModelProperty("总学位")
    private Integer claQuota;
    @ApiModelProperty("已锁学位")
    private Integer lockSeatNum;
    @ApiModelProperty("已报读学位")
    private Integer claRegedNum;
    @ApiModelProperty("学位变更时间")
    private Date claQuotaModifyTime;

    public TmsClassDegree(CourseClass courseClass){
        this.setClaId(courseClass.getClassId());
        this.setClaQuota(courseClass.getQuota());
        this.setLockSeatNum(courseClass.getLockAmount());
        this.setClaRegedNum(courseClass.getRegAmount());
        this.setClaQuotaModifyTime(courseClass.getDegreeUpdateTime());
    }

    public Long getClaId() {
        return claId;
    }

    public void setClaId(Long claId) {
        this.claId = claId;
    }

    public Integer getClaQuota() {
        return claQuota;
    }

    public void setClaQuota(Integer claQuota) {
        this.claQuota = claQuota;
    }

    public Integer getLockSeatNum() {
        return lockSeatNum;
    }

    public void setLockSeatNum(Integer lockSeatNum) {
        this.lockSeatNum = lockSeatNum;
    }

    public Integer getClaRegedNum() {
        return claRegedNum;
    }

    public void setClaRegedNum(Integer claRegedNum) {
        this.claRegedNum = claRegedNum;
    }

    public Date getClaQuotaModifyTime() {
        return claQuotaModifyTime;
    }

    public void setClaQuotaModifyTime(Date claQuotaModifyTime) {
        this.claQuotaModifyTime = claQuotaModifyTime;
    }
}
